package pcserver;

import javax.swing.ImageIcon;
import javax.swing.JPanel;

public class HelpWindow extends JPanel implements AbstractWindow {
	private static final long serialVersionUID = 1L;

	private ImageIcon bgimage;

	private ImageBtn back;
	
	private ImageIcon backIcon;
	private ImageIcon back_on;

	
	public HelpWindow(){
		this(new ImageIcon(util.direction + "helpbg.png"));
	}

	public HelpWindow(ImageIcon bgimage){
		this.bgimage = bgimage;
		backIcon = new ImageIcon(util.direction + "back.png");
		back_on = new ImageIcon(util.direction + "back_1.png");

		back = new ImageBtn(backIcon, back_on);
		
		setOpaque(false);  
		setLayout(null);
		add(back);
		back.setBounds(500, 480, 200, 50);
	}
	
	@Override
	public ImageIcon getBgimage() {
		return bgimage;
	}
	
	public ImageBtn getBack() {
		return back;
	}

}
